<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<title>jQuery响应式卡片轮播切换代码</title>
		<link rel="stylesheet" type="text/css" href="css/style.css" />
	</head>
	<body>
		<div  id="banner">
			<div id="carousel">
				<img src="img/2.png" data-url="#">
				<img src="img/3.png" data-url="#">
				<img src="img/4.png" data-url="#">
			</div>
		</div>
		<script src="js/jquery-1.11.2.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/slider.js" type="text/javascript" charset="utf-8"></script>
		<script>
			$(function() {
				$('#carousel').carousel({
					curDisplay: 0, //默认索引
					autoPlay: false, //是否自动播放
					interval: 3000 //间隔时间
				});
			});
		</script>
	</body>
</html>
